Extensional equality preservation and verified generic programming

نویسندگان

چکیده

In verified generic programming, one cannot exploit the structure of concrete data types but has to rely on well chosen sets specifications or abstract (ADTs). Functors and monads are at core many applications functional programming. This raises question what useful ADTs for functors could look like. The functorial map important preserves extensional equality. For instance, if $f, g : A \rightarrow B$ extensionally equal, that is, $\forall x \in A, \ f = x$, then $map List g$ also equal. suggests preservation equality be a principle in We explore this possibility with minimalist approach: we deal (the lack of) Martin-L\"of's intensional type theories without extending using full-fledged setoids. Perhaps surprisingly, minimal approach turns out extremely useful. It allows derive simple proofs monadic laws verified, results dynamical systems control theory. turn, these avoid tedious code duplication ad-hoc proofs. Thus, our work is contribution towards pragmatic,

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Internalization of extensional equality

We propose a natural syntactic account of extensional equality in type theory. Starting from the classical definition of extensional equality by induction on type structure, we show how the logical relation can be internalized in a way that covers all higher dimensions simultaneously. The result is a type theory in which every type has a (nontruncated) globular structure with degeneracy maps. S...

متن کامل

Extensional Equality in Intensional Type Theory

We present a new approach to introducing an extensional propositional equality in Intensional Type Theory. Our construction is based on the observation that there is a sound, intensional setoid model in Intensional Type theory with a proof-irrelevant universe of propositions and -rules for and -types. The Type Theory corresponding to this model is decidable, has no irreducible constants and per...

متن کامل

Reasoning in Extensional Type Theory with Equality

We describe methods for automated theorem proving in extensional type theory with primitive equality. We discuss a complete, cut-free sequent calculus as well as a compact representation of cut-free (ground) proofs as extensional expansion dags. Automated proof search can be realized using a few operations to manipulate extensional expansion dags with variables. These search operations form a b...

متن کامل

VSDP: Verified SemiDefinite Programming

VSDP is a MATLAB software package for rigorously solving semidefinite programming problems. It expresses these problems in a notation closely related to the form given in textbooks and scientific papers. Functions for computing verified forward error bounds of the true optimal value and verified certificates of feasibility and infeasibility are provided. All rounding errors due to floating poin...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Journal of Functional Programming

سال: 2021

ISSN: ['0956-7968', '1469-7653']

DOI: https://doi.org/10.1017/s0956796821000204